﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutoPartsSearch.Domain.Entities.Enums;

namespace AutoPartsSearch.Domain.Abstract
{
    public interface IMembership
    {
        bool ValidateUser(string userName, string password);
        void SetCookie(string userName, bool remember);
        void SignOut();
        void CreateUser(string userName, string password, string email);
        void AddRoleToUser(string userName, string role);
        bool IsUserInRole(string userName, string role);
        string GetUserNameByEmail(string email);
        string ResetPassword(string userName);
    }
}
